package xyz.jcat.sco.admin.oauth2.server.auth;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class GrantedAuthorityImpl implements GrantedAuthority {

    private Long roleId;

    @Override
    public String getAuthority() {
        return roleId.toString();
    }
}
